// 订单
import request from '@/utils/request'
export default {
   // 根据id获取订单信息
   getOrderInfo(orderId){
        return request({
            url:`/orderservice/order/getOrder/${orderId}`,
            method:'get'
        })
    },

    // 创建订单
    createOrder(courseId){
        return request({
            url:`/orderservice/order/createOrder/${courseId}`,
            method:'post'
        })
    },
    // 生成微信支付二维码 
    createNativeTow(orderNo){
        return request({
            url:`/orderservice/payLog/createNative/${orderNo}`,
            method:'get'
        })
    },

    // 支付是否成功，成功后添加支付流水记录，并修改支付状态
    queryPayAndStatus(orderNo){
        return request({
            url:`/orderservice/payLog/queryPayStatus/${orderNo}`,
            method:'get'
        })
    }
}